﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserEdit.ascx.cs" Inherits="Controls_BackEnd_UserEdit" %>
<%@ Import Namespace="Business" %>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
        <!-- start content-outer -->
        <div id="content-outer">
            <!-- start content -->
            <div id="content">
                <div id="page-heading">
                    <h1>
                        <%=string.Format(Resources.Resource.Update,Resources.Resource.Group) %></h1>
                </div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                    <tr>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowleft.jpg"
                                width="20" height="300" alt="" />
                        </th>
                        <th class="topleft">
                        </th>
                        <td id="tbl-border-top">
                            &nbsp;
                        </td>
                        <th class="topright">
                        </th>
                        <th rowspan="3" class="sized">
                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/side_shadowright.jpg"
                                width="20" height="300" alt="" />
                        </th>
                    </tr>
                    <tr>
                        <td id="tbl-border-left">
                        </td>
                        <td>
                            <!--  start content-table-inner -->
                            <div id="content-table-inner">
                                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                    <tr valign="top">
                                        <td>
                                            <!-- start id-form -->
                                            <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.UserName %>
                                                        :
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtUserName" class="inp-form" MaxLength="32" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Password %>:
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtPassword" class="inp-form" TextMode="Password" MaxLength="24"
                                                            runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                    </th>
                                                    <td style="color: #2E74B2; font-weight: normal; font-style: italic;">
                                                        <%=Resources.Resource.PassDescript%>                                                        
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Email %>:
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtEmail" class="inp-form" MaxLength="32" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.FullName %>:
                                                    </th>
                                                    <td>
                                                        <asp:TextBox ID="txtFullName" class="inp-form" MaxLength="50" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Department %>:
                                                    </th>
                                                    <td>
                                                        <asp:DropDownList class="styledselect_form_1" ID="ddlDepartment" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.Group %>:
                                                    </th>
                                                    <td>
                                                        <asp:DropDownList class="styledselect_form_1" ID="ddlGroup" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">
                                                        <%=Resources.Resource.isActive %>:
                                                    </th>
                                                    <td>
                                                        <asp:CheckBox ID="cbActive" runat="server" />
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        &nbsp;
                                                    </th>
                                                    <td valign="top">
                                                        <asp:Button ID="btnSave" OnClientClick="if(!CheckNull())return false;" class="form-submit"
                                                            OnClick="AllCommand" runat="server" />
                                                        <asp:Button ID="btnReset" class="form-reset" OnClick="AllCommand" runat="server" />
                                                        &nbsp;<asp:Button Style="margin-left: 5px;" ID="btnBack" class="form-back" OnClick="AllCommand"
                                                            Text="Back" runat="server" />
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                            <!-- end id-form  -->
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="<%=Config.ApplicationUrl %>resources/images/admin/shared/blank.gif" width="695"
                                                height="1" alt="blank" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear">
                                </div>
                            </div>
                            <!--  end content-table-inner  -->
                        </td>
                        <td id="tbl-border-right">
                        </td>
                    </tr>
                    <tr>
                        <th class="sized bottomleft">
                        </th>
                        <td id="tbl-border-bottom">
                            &nbsp;
                        </td>
                        <th class="sized bottomright">
                        </th>
                    </tr>
                </table>
                <div class="clear">
                    &nbsp;</div>
            </div>
            <!--  end content -->
            <div class="clear">
                &nbsp;</div>
        </div>
        <!--  end content-outer -->

        <script language="javascript" type="text/javascript">CheckNull=function(){var control=$control('<%=txtUserName.ClientID %>');
        if(control.value.length<4 || Trim(control.value).length<4){control.focus();
        control.className='inp-form-error';
        jAlert('<%=string.Format(Resources.Resource.InputData,Resources.Resource.UserName.ToLower()) %>','<%=Resources.Resource.Warning %>');return false;}
        control.className='inp-form';
        control=$control('<%=txtPassword.ClientID %>');
        if(control.value.length<6 || Trim(control.value).length<6){control.focus();
        control.className='inp-form-error';
        jAlert('<%=string.Format(Resources.Resource.InputData,Resources.Resource.Password.ToLower()) %>','<%=Resources.Resource.Warning %>');return false;}
        control.className='inp-form';
        control=$control('<%=txtEmail.ClientID %>');
         if(control.value.length<6 || Trim(control.value).length<6){control.focus();
        control.className='inp-form-error';
        jAlert('<%=string.Format(Resources.Resource.InputData,Resources.Resource.Email.ToLower()) %>','<%=Resources.Resource.Warning %>');return false;}
        if(!CheckEmail(control.value))
        {control.focus();
        control.className='inp-form-error';
        jAlert('<%=Resources.Resource.InputData,Resources.Resource.EmailInvalid %>','<%=Resources.Resource.Warning %>');return false;}
        control.className='inp-form';
        return true;}</script>

        <script type="text/javascript">
reloadpage =function() {$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });	
}
        </script>

    </ContentTemplate>
</asp:UpdatePanel>
